package com.itheima.domain.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserQueryParam {
    private String name;
    private Integer gender;
    private Integer page;
    private Integer pageSize;
    private Integer index;

    public Integer getIndex() {
        return (page-1)*pageSize;
    }
}
